package com.ckg.auto.impl;

import com.ckg.auto.UserRepository;

// MongoDB 实现
public class MongoDBUserRepository implements UserRepository {
    private String connectionString; // 简单类型参数（需手动配置）

    public void setConnectionString(String connectionString) {
        this.connectionString = connectionString;
    }

    @Override
    public void saveUser(String username) {
        System.out.printf("📊 [MongoDB] 保存用户 %s (连接: %s)%n", username, connectionString);
    }
}
